Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic utilities for 3D math #48

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Basic utilities for 3D math #48

wants to merge 4 commits into from

Conversation

froyo-np
Copy link
Collaborator

@froyo-np froyo-np commented Dec 24, 2024

What

  • Math!
  • a Matrix library, in the style of the vector libraries - specifically square matrixes of dimension 2, 3 or 4.
  • the matrix library is quite small, supporting basic transforms and rotations - matricies have value types (they are immutable)
  • an Axis-angle utility is also provided - axis angle is a nice way to encode a rotation - its easy to normalize and compose, and its easier to debug than a quaternion (IMHO), and it does not suffer from everyone's scariest nightmare, the dreaded gimbal lock.
  • note that "high performance" is a non-goal - high throughput vector math belongs on the GPU.

Replace this with 1-2 line Description of what feature, bugfix, chore does the PR contain the code for.

How

we dont really have any 3D visualization examples in this library yet, so I've relied on some unit testing for now.

Screenshots

This section is optional if there are no visible changes

  • If possible add screenshots of the visible additions in the UI.
  • If there are changes in the UI, add Before and After Screenshots for quick overview.
  • If there was a Figma design, add a link to that here as well.
  • Hint : Drag and Drop any images you want to add to the PR. Also you can create a gif of an interactive version and add that!

PR Checklist

  • Is your PR title following our conventional commit naming recommendations?
  • Have you filled in the PR Description Template?
  • Is your branch up to date with the latest in main?
  • Do the CI checks pass successfully?
  • Have you smoke tested the example applications?
  • Did you check that the changes meet accessibility standards?
  • Have you tested the application on these browsers?
    • Chrome (Fully supported)
    • Firefox (Major bug fixes supported)
    • Safari (Major bug fixes supported)

@froyo-np froyo-np changed the title initial commit of some fun math Basic utilities for 3D math Jan 6, 2025
@froyo-np froyo-np marked this pull request as ready for review January 6, 2025 22:57
@froyo-np froyo-np requested a review from a team as a code owner January 6, 2025 22:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant